//
//  JGWithDrawalRecordApi.m
//  JGRider
//
//  Created by 单启志 on 2018/3/12.
//  Copyright © 2018年 ffq. All rights reserved.
//

#import "JGWithDrawalRecordApi.h"

@implementation JGWithDrawalRecordApi

-(NSString *)requestUrl{
    return @"api/pay/pay.do?action=getWithdrawCashRecord";
}

-(id)jsonValidator{
    return @{
             @"code":[NSString class],
             @"data":@{
                     @"state":[NSString class],
                     @"msg":[NSString class],
                     @"data":[NSArray class]
                     },
             @"message":[NSString class]
             };
}


-(void)withdrawalRecordSuccessBlock:(void(^)(id result))invokeSuccessBlock faileBlock:(void(^)(id error))invokeFaileBlock{

    NSMutableDictionary *dic=[NSMutableDictionary dictionary];
    dic[@"mid"]=LoginModel.Id;
    [[JGRequestHelper share]requestWithParams:dic requestApi:[self class] successBlock:^(id result) {
        invokeSuccessBlock(result);
    } faileBlock:^(id error) {
        invokeFaileBlock(error);
    }];

}

@end
